/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: MainConfig
 * Author:   zhouheng
 * Date:     2018/5/24 9:56
 * Description: 注解测试1
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhou.annotation.config;

import com.zhou.annotation.bean.Person;
import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.context.annotation.ComponentScan.Filter;

/**
 * 〈一句话功能简述〉<br> 
 * 〈注解测试1〉
 *
 * @author zhouheng
 * @create 2018/5/24
 * @since 1.0.0
 */
//@Configuration
@ComponentScans(value = {
        @ComponentScan(
                value = "com.zhou.annotation",
                useDefaultFilters = false,
                includeFilters = {
//						@Filter(type= FilterType.ANNOTATION,classes={Controller.class})
//                        @ComponentScan.Filter(type=FilterType.ASSIGNABLE_TYPE,classes={BookService.class}),
						@ComponentScan.Filter(type=FilterType.CUSTOM,classes={MyTypeFilter.class})
                }
        )
})
public class MainConfig {

    @Bean(value = "person01")
    public Person person(){
        Person person = new Person();

        return person;
    }

}